/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;

/**
 * <p>Project: javaseapp - Ex02
 * <p>Powered by webrx On 2021-08-11 16:24:41
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Ex02 {
    public static void main(String[] args) {
        // d:/t  d:t  \\
        String dir = "d:" + File.separator + "t";
        try {
            Runtime run = Runtime.getRuntime();
            run.exec("cmd /k mkdir d:" + File.separator + "userabc");
            run.exec(String.format("cmd /k rmdir /S /Q %s", dir));
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
